﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WiMo.Games.Inputs
{
    public interface ICharacterBuffer
    {
        /// <summary>
        /// Add a character to the buffer.
        /// </summary>
        /// <param name="ch">Character to be added</param>
        void Add(Char ch);

        /// <summary>
        /// Contains a list of alpha numeric characters 
        /// that correspond to key presses since the 
        /// last update.
        /// </summary>
        List<char> Buffer { get; }

        /// <summary>
        /// Contains a Concatenated string of all the characters currently
        /// in the buffer.
        /// </summary>
        string BufferString { get; }

        /// <summary>
        /// Resets the buffer, should be called after 
        /// every update.
        /// </summary>
        void Clear();
    }
}
